package com.mall.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mall.entity.ProductVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;
@Repository
public interface ProductVOMapper extends BaseMapper<ProductVO> {
    List<ProductVO> selectProductByCategoryId(@Param("cid") Integer cid, @Param("start") Integer start,@Param("pageSize") Integer pageSize);

    ArrayList<String> selectProductBrandByCategoryId(Integer categoryId);

    List<ProductVO> selectProductByKeyword(@Param("keyword") String keyword,@Param("start") Integer start,@Param("limit") Integer limit);

    ArrayList<String> selectBrandByKeyword(String keyword);

    List<ProductVO> selectProductInfo(String productId);

    List<ProductVO> listRecommendProducts();

    List<ProductVO> selectBySoilNum();
}
